package com.atguigu.mptest.bean;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @TableId(value = "id")
    private Long iid;
    @TableField(value = "nme")
    private String name;
    private Integer age;
    private String email;

    @TableField(fill = FieldFill.INSERT)
    public Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    public Date gmtModified;

    @TableLogic
    public Boolean isDelete;
}
